import GameCtrl from "./GameCtrl";
import StartScene from "./StartScene";

const {ccclass, property} = cc._decorator;

@ccclass
export default class GameScene extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property(cc.Node)
    pokerContainer: cc.Node = null;
    
    @property(cc.Prefab)
    pokerPrefab: cc.Prefab = null;

    private m_GameCtrl: GameCtrl = null;

    start () {
        console.log('>> GameScene:start')
        // init logic
        this.label.string = '这是游戏场景';

        this.m_GameCtrl = new GameCtrl();
        this.m_GameCtrl.Init(this.pokerContainer, this.pokerPrefab)
        this.m_GameCtrl.Start()
    }
}
